// samsting : this file is auto create.

#include "Emr/2015-09-10/ListJobsResponse.h"

namespace aliyun { namespace Emr {

ListJobsResponse::ListJobsResponse() {
}

int64 ListJobsResponse::JobInfo::GetJobId(void) const {
  return JobId_;
}

const string& ListJobsResponse::JobInfo::GetJobName(void) const {
  return JobName_;
}

int ListJobsResponse::JobInfo::GetJobType(void) const {
  return JobType_;
}

const string& ListJobsResponse::JobInfo::GetEnvConfig(void) const {
  return EnvConfig_;
}

int ListJobsResponse::JobInfo::GetJobFailAct(void) const {
  return JobFailAct_;
}

const std::vector<ListJobsResponse::JobInfo>& ListJobsResponse::GetJobs(void) const {
  return Jobs_;
}

int ListJobsResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int ListJobsResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int ListJobsResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* ListJobsResponse::BaseKey(void) {
  return "ListJobsResponse";
}

void ListJobsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Jobs__length = 0;
  UnmarshallerInt(Jobs__length, response_map, "ListJobsResponse.Jobs.Length");
  if(Jobs__length >= 0) {
    Jobs_.resize(Jobs__length);
    for(int i1 = 0; i1 < Jobs__length; i1++) {
      UnmarshallerInt64(Jobs_[i1].JobId_, response_map, "ListJobsResponse.Jobs["+string_ValueOfInt(i1)+"].JobId");
      UnmarshallerString(Jobs_[i1].JobName_, response_map, "ListJobsResponse.Jobs["+string_ValueOfInt(i1)+"].JobName");
      UnmarshallerInt(Jobs_[i1].JobType_, response_map, "ListJobsResponse.Jobs["+string_ValueOfInt(i1)+"].JobType");
      UnmarshallerString(Jobs_[i1].EnvConfig_, response_map, "ListJobsResponse.Jobs["+string_ValueOfInt(i1)+"].EnvConfig");
      UnmarshallerInt(Jobs_[i1].JobFailAct_, response_map, "ListJobsResponse.Jobs["+string_ValueOfInt(i1)+"].JobFailAct");
    } // for(int i1 = 0; i1 < Jobs__length; i1++) {
  } // if(Jobs__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "ListJobsResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "ListJobsResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "ListJobsResponse.PageSize");
}


} } // namespace aliyun { namespace Emr {

// end of file 
